package com.gao.controller;

import com.gao.entity.Result;
import com.gao.service.AnswerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/answer")
public class AnswerController {
    @Autowired
   private AnswerService answerService;
    @GetMapping("/getAnswer")
    public Result getAnswer(){
        return Result.success(answerService.selectAllWithRelations());
    }
}
